function tis(obj) {
    var row=$(obj).attr("data-title"); //获取显示内容
    //小tips
    layer.tips(row,obj,{
        tips:[1,"black"],
        time:1000
    })
}


/**
 * 鼠标移上提示
 */
$(".copy").hover(function () {
    layer.tips("点击复制内容",$(this),{
        tips:[1,"black"],
        time:1000
    })
},function () {
    layer.closeAll();
});



// 复制
var clipboard = new ClipboardJS('.copy');
clipboard.on('success', function (e) {
    e.clearSelection();
    layer.msg('复制成功', {icon: 1,time:1000});
});
clipboard.on('error', function (e) {
    layer.msg('复制失败，请手动复制', {icon: 5,time:1000});
});